package com.example.english.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.english.R;
import com.example.english.Utils;

public class SplashActivity extends AppCompatActivity {

    private TextView tv_name;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
        Utils.setBarColor(this,true);
        tv_name = findViewById(R.id.tv_name);

        tv_name.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent it = new Intent(SplashActivity.this ,LoginActivity.class);
                startActivity(it);
                finish();
            }
        },2500);

    }

    public void goIntent(View view){
        Intent it = new Intent(this ,LoginActivity.class);
        startActivity(it);
    }

}
